package com.stephen.redisdemo.thread;

/**
 * @author: stephen
 * @create: 2020-03-02 14:39
 * @description:
 */
public class GCDemo {

    public static void main(String[] args) throws InterruptedException {
        System.out.println("gc demo");
        // TimeUnit.SECONDS.sleep(Integer.MAX_VALUE);
        System.out.println(Runtime.getRuntime().totalMemory());
        System.out.println(Runtime.getRuntime().maxMemory());
        byte[] arr = new byte[50 * 1024 * 1024];
    }
}
